home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / FGCE100.ZIP / fgce.doc next >
Encoding:
Text File  |  1994-11-18  |  4.1 KB  |  129 lines

  1.  
  2.  
  3.  
  4.                         Fastgraph Cursor Editor.
  5.  
  6.                              Version 1.00.
  7.  
  8.                    Copyright (c) 1994 by Thomas Bargholz.
  9.  
  10.                            All rights reserved.
  11.  
  12.  
  13.  
  14.  
  15. ------------
  16. INTRODUCTION
  17. ------------
  18. Fastgraph is a registered trademark of Ted Gruber Software, Inc. Used by kind
  19. permission.
  20.  
  21. Fastgraph Cursor Editor (FGCE) is a graphic mouse cursor drawing program.
  22. With your mouse, you simply draw the appearance of the cursor, and the
  23. program then outputs the cursor in the source code of your choise: Pascal,
  24. c, Fortran or Basic.
  25. The actual output is an array of 32 word sized values, that can be used with
  26. any graphic mouse library, to implement your own cursor in a graphic mode.
  27.  
  28. If you have any comments, suggestions or bug-reports, please contact:
  29.  
  30. e-mail :    tba@m.dia.dk
  31. snail mail: Thomas Bargholz
  32.             Smallegade 20A, 3 tv.
  33.             DK-2000 Frederiksberg
  34.             Denmark
  35.  
  36. ------------
  37. REQUIREMENTS
  38. ------------
  39. FGCE requires EGA and a mouse.
  40. To recompile FGCE, Turbo/Borland Pascal 7.0 + Ted Gruber Softwares FastGraph 
  41. (tm) graphics library is required.
  42.  
  43. ---------
  44. FASTGRAPH
  45. ---------
  46. Fastgraph (tm) is a graphic library that supports graphic modes from 320x200x2
  47. to 1024x768x256 + text modes, bitmaps as PCX, GIF and RLE, Autodesk FLI animator
  48. files, page-flipping for animation, joy-stick, mouse and low-level keyboard
  49. support, sound support, special effects (fades), palette handling and much, 
  50. much, much more. And it does all that in both real and protected mode for
  51. the four languages also supported by FGCE : Pascal, c, Fortran and Basic on
  52. virtually any compiler.
  53.  
  54. Ted Gruber Software
  55. P.O.Box 13408
  56. Las Vegas, NV 89112
  57. USA.
  58. Phone: +1 702-735-1980
  59. Fax: +1 602-483-0193
  60. CIS: 72000,1642
  61.  
  62. ----------------
  63. DRAWING A CURSOR
  64. ----------------
  65. There are six main areas on the screen:
  66.  
  67. 1) The buttons : Top left corner :
  68. Save  : Saves the cursor.
  69. Clear : Clears the cursor work area.
  70. Test  : Allows you to test the drawn cursor inside FGCE.
  71. Exit  : Exit FGCE.
  72.  
  73. 2) Source code radio buttons : Lower left corner :
  74. The four radio buttons, allows you to select the source code for the output :
  75. Pascal, c, Fortran, Basic.
  76.  
  77. 3) Fat-bit editor : Center :
  78. This is an enlarged version of the cursor you are drawing. You draw by
  79. clicking on a bit in the editor. To draw multible bits, press the left mouse
  80. button and drag over the editor.
  81.  
  82. 4) Real life cursor : Top right :
  83. This is an image on how the cursor will look in it's real life size.
  84.  
  85. 5) Color radio buttons : Lower right :
  86. Here you select the color to draw with in the fat-bit editor.
  87.  
  88. 6) Output name : Bottom line.
  89. This is the default output name. When you select source code, the extension on
  90. the output name changes : PAS for Pascal; C for c; FOR for Fortran; BAS for
  91. Basic.
  92. To change the default name, click on it. You can then type in a new name. Only
  93. the eight first characters of a filename is allowed, as FGCE gives the satndard
  94. extensions as decribed above.
  95. Valid characters are: 0-9,A-Z,{,},_,[,],(,) and -. To cancel giving a new
  96. output name, press escape.
  97.  
  98.  
  99. ----------------
  100. USING THE OUTPUT
  101. ----------------
  102. The saved cursor is in the form of an array of 32 word sized values.
  103. In Fastgraph (tm), you set the new cursor with the command :
  104. (as Pascal source)
  105.  
  106.   const
  107.     MyCursor : array[0..31] of Word = (
  108.          $001F,$803F,$803F,$803F,$803F,$C07F,$E0FF,$F1FF,
  109.          $F1FF,$E0FF,$C07F,$803F,$803F,$803F,$803F,$001F,
  110.          $0000,$3F80,$3F80,$3F80,$3B80,$1500,$0A00,$0400,
  111.          $0400,$0E00,$1B00,$3F80,$3B80,$3580,$2A80,$0000);
  112.  
  113.   begin
  114.     :
  115.     fg_mouseptr(MyCursor,8,8);
  116.     :
  117.   end.
  118.  
  119. Fastgraph users can see chapter 14 in the Fastgraph manual and example 14-10
  120. for more information.
  121.  
  122. Users of other mouse libraries, see you documentation.
  123.  
  124. If you are writing you own mouse library, you use interrupt 33h, with
  125. AX = 09h, BX = horizontal hotspot, CX = vertical hotspot, DX = offset of
  126. pointer to the mouse cursor array, ES = segment of pointer to the mouse
  127. cursor array.
  128.  
  129.